import request from "@/utils/request";

export default {
    // 查询原始打包农产品详细
    getYuanshi: (id) => request({
        url: '/system/yuanshi/' + id,
        method: 'get'
    }),
    //查询运输管理
    getyunshu: (id) => request({
        url: '/stTransport',
        method: 'get',
        params:{
            orderId:id,
            pageNum:1,
            pageSize:10,
        }
    }),
    //分页查询商品列表
     listGoods:(data)=> {
        return request({
            url: '/merchandise/findSysOrgPageByCondition',
            method: 'post',
            data: data
        })
    },
    //查询类型
    typesbyId:(id)=> {
        return request({
            url: '/ylj/type/dp/selectChildrenTypeById?typeId='+id,
            method: 'get',
        })
    },
    //更新货物信息
    putOrder(data){
        return request({
            url: '/stOrder',
            method: 'put',
            data
        })
    },
    //更新物流信息
    putTransport(data){
        return request({
            url: '/stTransport/updateById',
            method: 'post',
            data
        })
    },
    //查询类型
    listType:(data)=> {
        return request({
            url: '/merchandise/findSysOrgByCondition',
            method: 'post',
            data: data
        })
    },
}